<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<div class="row">
    <div class="box col-md-12">
        <div class="box-inner">
            <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-edit"></i> Faculty Registration</h2>

               
            </div>
            <div class="box-content">
                <html:form action="FacultyRegisterAction.do" method="post">
                
                    
                  
                    
                    <div class="form-group">
                        <label for="exampleInputEmail1">First Name</label>
                        <html:text property="fname" styleClass="form-control" styleId="exampleInputEmail1"></html:text>
                        
                        <span style="color: #91170a;font-family: serif;font-size: 14px" id="fname_error_txt"><html:errors property="fname" ></html:errors></span>
                    </div>
                    <div class="form-group">
                        
                        <label for="exampleInputEmail1">Middle Name</label>
                    <html:text  property="mname" styleClass="form-control" styleId="exampleInputEmail1"></html:text>
                        <span style="color: #91170a;font-family: serif;font-size: 14px" id="mname_error_txt"><html:errors property="mname" ></html:errors></span>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">Last Name</label>
                    <html:text  property="lname" styleClass="form-control" styleId="exampleInputEmail1"></html:text>
                        <span style="color: #91170a;font-family: serif;font-size: 14px" id="mname_error_txt"><html:errors property="lname" ></html:errors></span>
                    </div>
                    
                    <div class="form-group">
                        <label for="exampleInputEmail1">Gender</label>
                        <div class="radio">
                    <label>
                    <html:radio  property="gender" styleId="optionsRadios1" value="male" ></html:radio>
                        Male
                    </label>
                    </div>
                    <div class="radio">
                        <label>
                            <html:radio  property="gender" styleId="optionsRadios1" value="female" ></html:radio>
                        Female
                    </label>
                    </div>
<!--                        <span style="color: #91170a;font-family: serif;font-size: 14px" id="gender_error_txt"><html:errors property="gender" ></html:errors></span>-->
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">Email</label>
                    <html:text  property="email" styleClass="form-control" styleId="exampleInputEmail1" ></html:text>
                        <span style="color: #91170a;font-family: serif;font-size: 14px" id="email_error_txt"><html:errors property="email" ></html:errors></span>
                    </div>
                    
                    <div class="form-group">
                        <label for="exampleInputEmail1">Password</label>
                    <html:password  property="password" styleClass="form-control" styleId="exampleInputEmail1" ></html:password>
                        <span style="color: #91170a;font-family: serif;font-size: 14px" id="password_error_txt"><html:errors property="password" ></html:errors></span>
                    </div>
                    
                    
                    
                    <div class="form-group">
                        <label for="exampleInputEmail1">Contact Number</label>
                    <html:text  property="contact" styleClass="form-control" styleId="exampleInputEmail1" ></html:text>
                        <span style="color: #91170a;font-family: serif;font-size: 14px" id="password_error_txt"><html:errors property="contact" ></html:errors></span>
                    </div>
                         <c:if test="${sessionScope.usertype eq 'admin'}">
                             <html:hidden  property="addedby" value="${sessionScope.admin.id}"></html:hidden>
                                 
                        </c:if>
                    
                    <div class="form-group">
                    <button type="submit" class="btn btn-default">Submit</button>
                    </div>
                    
                        </html:form>
</div>
                        </div>
                    
    </div>
    <!--/span-->

</div><!--/row-->

    <!-- content ends -->
   